<template>
      <div class="coacest-app">
            <router-view />
            <Top></Top>
      </div>
</template>

<script lang="ts" setup>
import { onMounted } from 'vue';
// TOP组件
import Top from '@/components/client/common/top/index.vue';

/**
 * 设备判断
 * 这里只做移动端和Pc端的判断
 * 移动端 = true
 * pc端 = false
 */
let acquisitionDevice = () => {
      let flag = navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)
      return flag ? true : false
}

/**
 * 页面加载时触发
 */
onMounted(() => {
      acquisitionDevice()
})
</script>

<style>
@import '@/styles/client/index.css';
</style>